/*
if (flags.get("effects_on_amount")) {
var newEffects = flags.get("effects_on_amount");
newEffects = newEffects.split(";");
for (var count = 0; count < newEffects.length; count++) {
var split2 = newEffects[count].split(":");
if (target.Points.get(split2[0])) {
var CPoint = target.Points.get(split2[0]);
if (!split2[1] || !split2[2] || !split2[3]) {
say("Error!");
return;
}
if (split2[1]) {
if (split2[1] == ">=") {
if (split2[2]) {
if (CPoint.Current < split2[2]) {
if (split2[3]) {
var effects = split2[3].split(",");
for (var i = 0; i < effects.length; i++) {
shared.RemoveEffect(effects[i], target, null);
}
}
}
if (CPoint.Current >= split2[2]) {
if (split2[3]) {
var effects = split2[3].split(",");
for (var i = 0; i < effects.length; i++) {
shared.ApplyEffect(effects[i], target, null);
}
}
}
}
}
if (split2[1] == "<=") {
if (split2[2]) {
if (CPoint.Current > split2[2]) {
if (split2[3]) {
var effects = split2[3].split(",");
for (var i = 0; i < effects.length; i++) {
shared.RemoveEffect(effects[i], target, null);
}
}
}
if (CPoint.Current <= split2[2]) {
if (split2[3]) {
var effects = split2[3].split(",");
for (var i = 0; i < effects.length; i++) {
shared.ApplyEffect(effects[i], target, null);
}
}
}
}
}


}
}
}
}

*/